<?php
/**
* @file $Id: DrawBlock.fnc.php 161 2006-09-07 06:21:17Z doritojones $
* @package Focus/SIS
* @copyright Copyright (C) 2006 Andrew Schmadeke. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
* Focus/SIS is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.txt for copyright notices and details.
*/

function DrawBlock($title,$content,$tabcolor='333366',$textcolor='FFFFFF')
{
	$block_table = "<center><TABLE border=\"0\" width=\"98%\" cellspacing=\"0\" cellpadding=\"0\"><TR><TD>";

//	$block_table .= DrawTab($title);
	$block_table .= "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"1\" class=\"Box\">";
	$block_table .= '<TR><TD bgcolor=#b6b7cb><IMG SRC=assets/pixel_trans.gif width=10 height=1><font face=Verdana,Arial,sans-serif size=-2><b>'.$title.'</b></font></TD></TR>';
	$block_table .= "<tr>";
	$block_table .= "<td><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" class=\"BoxContents\">";
	$block_table .= "<tr>";
	$block_table .= "<td><img src=\"assets/pixel_trans.gif\" border=\"0\" width=\"100%\" height=\"1\"></td>";
	$block_table .= "</tr>";
	$block_table .= "<tr>";
	$block_table .= "<td align=".ALIGN_LEFT.">";

	$block_table .= $content;
		
	$block_table .= "</td>";
	$block_table .= "</tr>";
	$block_table .= "<tr>";
	$block_table .= "<td><img src=\"assets/pixel_trans.gif\" border=\"0\" alt=\"\" width=\"100%\" height=\"1\"></td>";
	$block_table .= "</tr>";
	$block_table .= "</table>";
	$block_table .= "</td>";
	$block_table .= "</tr>";
	$block_table .= "</table>";
	$block_table .= "</TD></TR></TABLE></center>";	
	echo $block_table;
}

?>
